//
//  CharacterBuff.h
//  CandyJump
//
//  Created by Bon Lam on 25/06/2011.
//  Copyright 2011 Peru Republic. All rights reserved.
//

//=====================================================================================================================
typedef enum
{
	CHAR_BUFF_TYPE_UNDEFINED = 0,
	CHAR_BUFF_TYPE_JUMP_BOOST,
	CHAR_BUFF_TYPE_STAR_MAGNET,
	CHAR_BUFF_TYPE_BUBBLE,
	CHAR_BUFF_TYPE_IMMUNE,
	CHAR_BUFF_TYPE_ROCKET,
	
	CHAR_BUFF_TYPE_DISEASE,
	CHAR_BUFF_TYPE_BLIND,
	
} CHAR_BUFF_TYPE;

@class CCSprite;
//=====================================================================================================================
@interface CharacterBuffInfo : NSObject
{
	//! Unique identifier for each buff
	NSString				*buffCode;
	
	//! Type of the effect
	CHAR_BUFF_TYPE			charBuffType;
	
	//!	Display info.
	NSString				*displayName;
	NSString				*buffDescription;
	CCSprite				*buffIcon;
	
	//!	Effect
	//	TODO: add a effect info
	
	//!	Buff effect parameters
	NSDictionary			*paramDictionary;
	
	//! Duration of the effect, in second. -1 for unlimited time effects.
	int						duration;
}
//---------------------------------------------------------------------------------------------------------------------
@property(nonatomic, readwrite, assign)CHAR_BUFF_TYPE charBuffType;
@property(nonatomic, readwrite, retain)NSDictionary	*paramDictionary;

//---------------------------------------------------------------------------------------------------------------------
+ (CHAR_BUFF_TYPE) charBuffTypeByString:(NSString *)str;

@end

//=====================================================================================================================
@interface CharacterBuff : NSObject
{
	CharacterBuffInfo		*charBuffInfo;
	float					buffTimer;
}
//---------------------------------------------------------------------------------------------------------------------

//---------------------------------------------------------------------------------------------------------------------

@end
